<template>
  
  <div>
     <el-button type="primary" @click="addgoodsFun">添加商品</el-button>

       <span @click="putDoods(16888)">修改商品</span><br>
       <span @click="putDoods(100)">修改商品</span><br>
       <span @click="putDoods(1)">修改商品</span><br>
       <span @click="putDoods(88)">修改商品</span><br>
       <span @click="putDoods(103)">修改商品</span><br>
  </div>
</template>

<script>
export default {
  methods:{
    addgoodsFun(){//添加
        this.$router.push("/index/addgoods")
    },
    putDoods(goodsid){
           this.$router.push({
              path:"/index/addgoods",
              query:{
                 goodsid
              }
           })
    }
  }
}
</script>

<style>

</style>